<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<c:if test="${obj== null}">
	<c:set var="manage" value="add"></c:set>
</c:if>
<c:if test="${obj!= null}">
	<c:set var="manage" value="update"></c:set>
</c:if>
<form action="${contextPath}/admin/role/${manage}.do" method="post">
	<table width="100%">
		<tbody>
			<tr>
				<td>编号</td>
				<td>
					<c:if test="${obj== null}">
						<input name="id"/>
					</c:if>
					<c:if test="${obj!= null}">
						<input name="id" value="${obj.id }"/>
					</c:if>
				</td>		
			</tr>
			<tr>
				<td>角色名称</td>
				<td>
					<c:if test="${obj== null}">
						<input name="name"/>
					</c:if>
					<c:if test="${obj!= null}">
						<input name="name" value="${obj.name }"/>
					</c:if>
				</td>
			</tr>	
			<tr><td><button type="submit">提交</button></td><td></td></tr>
		</tbody>	
	</table>
</form>